package com.simple.indiapay.api;

import okhttp3.ResponseBody;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;

import java.util.Map;

/**
 * @author yasud
 * @date 2021年11月06日 17:33
 * @description
 **/
public interface TransferApi {

    /**
     * 代付操作
     * @param param
     * @return
     */
    @POST("/Payment_Dfpay_add.html")
    @Headers({
            HttpHeaders.ACCEPT+":"+ MediaType.APPLICATION_JSON_VALUE
    })
    @FormUrlEncoded
    Call<ResponseBody> transfer(@FieldMap Map<String,Object> param);

    /**
     * 代付查询
     * @param param
     * @return
     */
    @POST("/Payment_Dfpay_query.html")
    @Headers({
            HttpHeaders.ACCEPT+":"+MediaType.APPLICATION_JSON_VALUE
    })
    @FormUrlEncoded
    Call<ResponseBody> query(@FieldMap Map<String,Object> param);
}
